<%@ page language="java" errorPage="/framework/jsp/error.jsp"
	pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<link href="/cring/css/admin_style.css" rel="stylesheet" type="text/css">
<%@include file="/framework/jsp/taglibs.jsp"%>
<%@ taglib prefix="xwcms" uri="/WEB-INF/CMSConfig/com.xwtech.cms.tld"%>

<style type="text/css">
.td_area_right {
	font-family: Tahoma;
	font-size: 12px;
	color: #184D75;
	background-color: #E4F2FC;
	height: 130px;
	padding-right: 5px;
	padding-left: 5px;
	text-align: right;
}
.td_area_left {
	font-family: Tahoma;
	font-size: 12px;
	color: #2372AB;
	background-color: #FFFFFF;
	height: 130px;
	padding-right: 5px;
	padding-left: 5px;
	text-align: left;
}
.input_area_normal {
	padding-top: 3px;
	padding-left: 2px;
	border: 1px solid #94B3D6;
	font-family: Tahoma;
	font-size: 12px;
	color: #2372AB;
	height: 120px;
	width: 300px;
}
</style>
<script>
  function add() {
	    if(document.userGroup.group_name.value == "") {
		   alert("请输入待添加的用户组名!");
		   return;
		}
       if(confirm("确实要新增吗？")) {
           userGroup.action="/cring/jsp/admin/backGroundUser.do?method=addUserGroup";
           document.userGroup.submit();
       }
  }
</script>
<form name="userGroup" method="post" style="display: inline"
	target="_parent" enctype="multipart/form-data">
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0" class="table_big">
		<tr>
			<td>
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td width="4" height="4">
							<img src="/cring/image/admin/title_r4_c3.gif" width="4"
								height="4">
						</td>
						<td height="4">
							<img src="/cring/image/admin/title_r4_c4.jpg" width="100%"
								height="4">
						</td>
						<td width="4" height="4">
							<img src="/cring/image/admin/title_r4_c8.gif" width="4"
								height="4">
						</td>
					</tr>
				</table>
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td width="4" background="/cring/image/admin/title_r5_c3.jpg"
							bgcolor="#CCCCCC">
							&nbsp;
						</td>
						<td bgcolor="#EEF7FD">
							<table height="60" border="0" cellpadding="0" cellspacing="20">
								<tr>
									<td align="center">
										<div align="center">
											<input type="hidden" name="_success" value="16002">
											<input type="hidden" name="_failure" value="16003">
											<input type="button" class="button_xy_normal" value=" 保 存 "
												onclick="add();">
										</div>
									</td>
								</tr>
							</table>
							<table width="98%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td height="12" valign="top">
										<table width="100%" border="0" align="center" cellpadding="0"
											cellspacing="1">
											<tr>
												<td height="5"
													background="/cring/image/admin/title_r10_c5.jpg"></td>
											</tr>
										</table>
										<table width="97%" border="0" cellpadding="0" cellspacing="1"
											class="table_normal">
											<tbody id="query_listbody_1215ba3954b">
												<xwcms:iterator datalist="/admin/querySysRole.xml"
													bean="datalistitem" name="datalist">
													<xwcms:write property='role_name' bean="role_name" />
													<xwcms:write property='role_desc' bean="role_desc" />
												</xwcms:iterator>
												<tr querye_hasdata="1">
												<tr>
													<td width="150" height="36" class="td_item_right">
														用户组名:
													</td>
													<td class="td_normal_left">
														<input name="group_name" type="text" class="input_normal" 
															value="<xwcms:write name="role_name"/>" size="30" maxlength="30">
														<font color="red">*</font>
													</td>
												</tr>
												<tr>
													<td class="td_area_right">
														用户组描述:
													</td>
													<td class="td_area_left">
														<textArea name="group_desc" type="text"  
															class="input_area_normal" rows="4" cols="25"><xwcms:write name="role_desc" />
														</textArea>
													</td>
												</tr>
												<tr querye_hasdata="0">
													<td style="display: none;"></td>
												</tr>
											</tbody>

										</table>
									</td>
									<td width="4" background="/cring/image/admin/title_r5_c9.jpg"
										bgcolor="#CCCCCC">
										&nbsp;
									</td>
								</tr>
							</table>
							<table width="100%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="4" height="4">
										<img src="/cring/image/admin/title_r10_c3.gif" width="4"
											height="4">
									</td>
									<td height="4">
										<img src="/cring/image/admin/title_r12_c4.jpg" width="100%"
											height="4">
									</td>
									<td width="4" height="4">
										<img src="/cring/image/admin/title_r10_c8.gif" width="4"
											height="4">
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<br>
</form>